import request from '/@/utils/request'
import * as config from './config'

export const postRoleList =(data)=>request.post(config.roles,data)

export const addRole=(data)=>request.post(config.roleURD,data)

export const editRole = (data)=>request.put(config.roleURD+data.id,data)

export const delRole = (ids)=>request.delete(config.roleURD+ids)

export const addAssignMenuIds =(data) =>request.post(config.addRoleAssignMenuIds,data)
